package weapons;

import controllers.Point;


/**
 * @author Jeroen
 * @version 1.0
 * @created 24-mei-2012 13:44:44
 */

public class Missile extends Bullet {

	public MissileLauncher missileLauncher;
	
	private int MAXIMUM_SPEED = 40;//m/s 
	private static final int DAMAGE_BULLET = 20;//hp/bullet
	private static final int RANGE = 15000;	//in meters
	private int distanceToTravel;
	private int hit_chance = 1-(distanceToTravel / 30000);

	public int getMaximumSpeed() {
		return MAXIMUM_SPEED;
	}
	
	public void setMaximumSpeed(int maxSpeed) {
		this.MAXIMUM_SPEED = maxSpeed;
	}
	
	public Missile(Point position){ 
		super(position);
		setImage("\\waypoint.png");
		System.out.println("Instance " + this.getClass() + " created, without reference to goalkeeper!");
	}
	
	public int getDistanceToTravel(){
		return this.distanceToTravel;
	}
	
	public void setDistanceToTravel(int distanceToTravel)
	{
		this.distanceToTravel = distanceToTravel;
	}
	
	public int getHit_chance(){
		return this.hit_chance;
	}
	
	public void setHit_chance(int HIT_CHANGE)
	{
		this.hit_chance = HIT_CHANGE;
	}

	public void finalize() throws Throwable {

	}

}